﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace _0712502_0712504_DesignPatternGame
{
    public class TankTurretModel : GameModel
    {
        public IDTank idTank;
        public IDTankturret idTankTurret;
        public int Dammage;
        public int Amor;

        public TankTurretModel(IDTankturret idTurret,int damage,int amor)
        {
            this.idTankTurret = idTurret;
            this.Dammage = damage;
            this.Amor = amor;
        }

        public TankTurretModel()
        {
        }

        public TankTurretModel(MySprite spriteModel)
        {
            this.SpriteModel = spriteModel;
        }

        public override VisibleGameEntity Clone()
        {                     
            TankTurretModel model = new TankTurretModel();
            //model.SpriteModel = this.SpriteModel;
            
            model.SpriteModel = new MySprite(this.SpriteModel.Texture2ds, new Rectangle(0,0,54,54), new Vector2(27,27));
            model.idTank = this.idTank;
            model.idTankTurret = this.idTankTurret;
            model.SpriteModel.itexture2d = this.SpriteModel.itexture2d;
            return model;
        }
    }
}
